package mapper;

import java.util.List;
import java.util.Map;

import bean.Task;

public interface TaskMapper{
	public List<Task> findByUserId(Map<String, Object> map);
	public List<Task> findAll(Map<String, Object> map);
	public Double getLackMoney(Integer userid);
	public Double getLackFreightMoney(Integer userid);
	public Double getPayMoney(Integer userid);
	public Double getTotalPriceByPayNo(String payno);
	public Task findByTaskNo(String taskno);
	public List<Task> findLack(Map<String, Object> map);
	public List<Task> findApply(Map<String, Object> map);
	public List<Task> findApplied(Map<String, Object> map);
	public List<Task> findTransport(Map<String, Object> map);
	public List<Task> findByDeliveryNo(String deliveryNo);
	public void deliveryTask(Map<String, Object> deliveryInfo);
	public void pay(Map<String, Object> map);
	public void payback(Map<String, Object> map);
	public void lack(Map<String, Object> map);
	public void transportover(Map<String, Object> map);
	public void addTask(Task task);
	public void delTask(Map<String, Object> map);
	public void deliveried(Map<String, Object> map);
	public void updateTotalPriceByPayNo(Map<String, Object> map);
	public void payFreight(String taskno);
	public void transportoverAndDelivery(Map<String, Object> map);
}